#ifndef _sqstack_h
#define _sqstack_h
#include<iostream> 
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<windows.h>
#define OK 1
#define ERROR 0
#define OVERFLOW -1
#define MAXSIZE 100
using namespace std;
typedef int Status;
typedef int SElemType;
typedef struct
{
	SElemType *base;
	SElemType *top;
	int stacksize;
}SqStack;
Status InitStack(SqStack &S);
Status Push(SqStack &S,SElemType e);
Status Pop(SqStack &S,SElemType &e);
SElemType GetTop(SqStack S);
Status StackTraverse(SqStack S);
bool StackEmpty(SqStack S);
void menu();
#endif
